package com.gochris;

public class P1ditui2 {

	public static int fn(int n,StringBuilder sb){
		if(n==1){
			sb.append(1).append("=");
			System.out.println(sb);
			return 1;
		}else{
			sb.append(n).append("*");
			System.out.println(sb);
			return n*fn(n-1,sb);	
		}
	}
	
	public static void main(String[] args) {
		StringBuilder sb=new StringBuilder();
		int n=6;
		int v=fn(n,sb);
		System.out.println(sb+""+v);
	}

}
